package com.datoucai.config;

import feign.Request;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfig {
    @Bean
    public Request.Options options() {
        // 设置连接超时为5秒，读取超时为10秒
        return new Request.Options(5000, 10000);
    }
}